#=================
#Author:HuangGang 
#Date: 2017/10/22
#=================

import web
import config

def add_comment(account, user_id, strategy_id, comment_text, comment_time):
    config.sjk.comment_coll.insert_one({'user_phone':account, 'user_id':user_id, 'strategy_id':strategy_id, 'comment_text':comment_text, "comment_time": comment_time})

def delete_comment(account, id):
    config.sjk.comment_coll.delete_one({'user_phone':account,'_id':id})
